package com.charon.auth.properties;

import com.charon.auth.common.abstraction.AbstractSMSCodeProperties;

import javax.validation.constraints.DecimalMax;

/**
 * @ClassName: SMSCodeProperties
 * @Description: 短信验证码配置
 * @Author Charon [248135724@qq.com]
 * @Date 2019/2/7 3:40
 * @Version V 1.0
 */
public class SMSCodeProperties extends AbstractSMSCodeProperties {
    /**
     * 默认短信验证码长度4
     */
    @DecimalMax("16")
    protected int length=4;

    /**
     * 默认，需要进行验证码验证的url
     */
    private String[] urls={"/user/form","/user/test"};

    /**
     * 默认过期时间
     */
    private int expire=120;

    @Override
    public String[] getUrls() {
        return urls;
    }

    @Override
    public void setUrls(String... urls) {
        this.urls=urls;
    }

    @Override
    public int getLength() {
        return this.length;
    }

    @Override
    public void setLength(int length) {
        this.length=length;
    }

    @Override
    public int getExpire() {
        return expire;
    }

    @Override
    public void setExpire(int expire) {
        this.expire = expire;
    }
}
